package domfarr.encoding;

import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.util.Set;
import java.util.Map.Entry;

public class EncodingIssues {
	private static final String £ = "\u00a3";

	public static void main(String[] args) throws UnsupportedEncodingException {
		Set<Entry<String, Charset>> entrySet = Charset.availableCharsets()
				.entrySet();
		System.out.println("Dom’s doc for testing has €,¥, garçon, in the title");
		for (Entry<String, Charset> entry : entrySet) {
			String poundSymbolUtf8 = new String("£".getBytes(), entry.getValue());
			byte[] bytes = poundSymbolUtf8.getBytes();
			if (true) {
				System.out.print(entry.getKey() + ": ");
				for (byte b : bytes) {
					System.out.print(" " + b);
				}
				System.out.println();
			}
		}
	}
}
